--TEST--
pear2::template_engine::Template will throw an exception if the $file parameter provided is
not a valid, readable file.
--FILE--
<?php

require_once __DIR__ . '/_setup.inc';

try {
    new pear2::template_engine::Template(__DIR__);
    trigger_error('exception not caught');
} catch (pear2::template_engine::exceptions::NotAFileException $e) {

}

$unreadable = __DIR__ . '/unreadable';
touch($unreadable);
chmod($unreadable,  0200);

try {
    new pear2::template_engine::Template($unreadable);
    trigger_error('exception not caught');
} catch (pear2::template_engine::exceptions::FileNotReadableException $e) {

}

?>
===DONE===
--CLEAN--
<?php @unlink(__DIR__ . '/unreadable'); ?>
--EXPECT--
===DONE===
